package microcredit.report;

import net.sf.jasperreports.engine.JRChart;
import net.sf.jasperreports.engine.JRChartCustomizer;

import org.jfree.chart.ChartColor;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PiePlot;

public class HIVChartCustomizer  implements JRChartCustomizer {

	@Override
	public void customize(JFreeChart chart, JRChart jasperChart) {
		PiePlot plot =  (PiePlot)chart.getPlot();
		plot.setSectionPaint("Positive", ChartColor.RED);
		plot.setSectionPaint("Negative", ChartColor.GREEN);
		plot.setSectionPaint("Unknown", ChartColor.BLUE);
	}
}
